package com.dlu.safe_construction.service;

import com.dlu.safe_construction.common.ApiResult;

import java.util.List;

import com.dlu.safe_construction.dto.AreaInfoDTO;
import com.dlu.safe_construction.dto.SpaceInfoDTO;
import com.dlu.safe_construction.model.Space;

/**
 * Created by  lijiaxing on 2022/3/30 20:57
 *
 * @author lijiaxing
 */

public interface SpaceService{

    ApiResult<Void> add(Space space);

    ApiResult<Void> deleteBy(Space space,Integer byWhat);

    ApiResult<Void> edit(Space space);

    ApiResult<List<AreaInfoDTO>> listAll();

    ApiResult<List<SpaceInfoDTO>> searchBy(String key, Integer byWhat);

}
